package com.example.demo.web;

import com.example.demo.pojo.GridProvince;
import com.example.demo.service.IGridProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/gridProvince")
@CrossOrigin("*")
public class GridProvinceWeb {

    @Autowired
    private IGridProvinceService gridProvinceService;

    // 查询所有省份
    @GetMapping("/listGridProvinceAll")
    public List<GridProvince> listGridProvinceAll() {
        return gridProvinceService.listGridProvinceAll();
    }

}
